import 'package:flutter/material.dart';

class ColorStyle {
  static const Color themeColor = Color.fromRGBO(210, 134, 254, 1);
  static const Color backGroundColor = Color.fromRGBO(245, 245, 245, 1);
  static const Color normalTextColor = Color.fromRGBO(51, 51, 51, 1);
  static const Color lightGreyColor = Color.fromRGBO(104, 106, 111, 1);
  static const Color blueTextColor = Color.fromRGBO(82, 137, 255, 1);
  static const Color lightBlueTextColor = Color.fromRGBO(237, 241, 255, 1);
  static const Color ashGreyColor = Color.fromRGBO(222, 223, 231, 1);
  static const Color redColor = Colors.red;
  static const Color orangeColor = Colors.orange;
  static const Color whiteColor = Colors.white;
  static const Color mainColor = Color.fromRGBO(210, 134, 254, 1);
  static const Color forbiddenMainColor = Color.fromRGBO(233, 128, 144, 1);
  static const Color lightPinkColor = Color.fromRGBO(255, 237, 240, 1);
  static const Color borderColor = Color.fromRGBO(238, 238, 238, 1);
  static const Color womenColor = Color(0xFFF784C1);
  static const Color manColor = Color(0xFFA1EFFB);
  static const Color zeroColor = Color(0xFF000000);
  static const Color f3f3f3Color = Color(0xFFF3F3F3);
  static const Color f5f5f5Color = Color(0xFFF5F5F5);
  static const Color f8f8f8Color = Color(0xFFF8F8F8);
  static const Color aaaaaaColor = Color(0xFFAAAAAA);
  static const Color ccccccColor = Color(0xFFCCCCCC);
  static const Color f1f1f1Color = Color(0xFFF1F1F1);
  static const Color d8d8d8Color = Color(0xFFD8D8D8);
  static const Color payColor = Color(0xFFD29F6D);
  static const Color color333333 = Color(0xFF333333);
  static const Color color666666 = Color(0xFF666666);
  static const Color color777777 = Color(0xFF777777);
  static const Color color999999 = Color(0xFF999999);
  static const Color colorCCCCCC = Color(0xFFcccccc);
  // static const Color cleanColor = Colors.cleanColor;
  static setColor(int hex) {
    return Color(hex);
  }

  // 个人标签背景颜色
  static setTagBgColor(int index) {
    if (index == 0) {
      return const Color(0xFFF4DDAB);
    } else if (index == 1) {
      return const Color(0xFFB2DDF6);
    } else {
      return const Color(0xFFE3C4F1);
    }
  }

  static sexBackGroundColor({int gender = 1}) {
    return gender == 1 ? womenColor : manColor;
  }

  static const LinearGradient linearForLoginBtnColor = LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: <Color>[Color(0xFFF94157), Color(0xFFFF92A8)]);

  static const LinearGradient rechargeItemBgColor = LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: <Color>[Color(0xFFFB927D), Color(0xFFFBC69E)]);

  static const LinearGradient rechargeItemBgColor2 = LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: <Color>[Color(0xFFF8DFC0), Color(0xFFF0BE8C)]);

  static const LinearGradient rechargePayBtnColor = LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: <Color>[Color(0xFFFCC79E), Color(0xFFFF972D)]);

  // 魅力值渐变
  static const LinearGradient charmValueColor = LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: <Color>[Color(0xFFFF5B6D), Color(0xFFFE88A3)]);

  // Ta的引力子标签渐变
  static const LinearGradient gravitationItemColor = LinearGradient(
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
      colors: <Color>[Color(0xFFEBBBFF), Color(0xFFD286FE)]);

  // 邀请有奖页面背景渐变
  static const LinearGradient inviteBackgroundColor = LinearGradient(
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
      colors: <Color>[Color(0xFFF0C9FF), Color(0xFFE6B2FF)]);

  // 榜单背景渐变
  static const LinearGradient boardBackgroundColor = LinearGradient(
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
      colors: <Color>[Color(0xFFB1C0FE), Color(0xFFD286FE)]);

  static setRandomColor(int random) {
    return Colors.primaries[random % Colors.primaries.length];
  }
}
